All Questions
Tagged with integration-testingdatabase
4 questions
1vote
2answers
681views
When writing tests against the database, should the test to create a resource also retrieve the resource to check the values were correctly inserted?
Where I work, we have some integration tests which spin up a new SQL database instance in Docker, so that we can test the repository logic for write actions as well as read actions. We have a test for ...
3votes
2answers
3kviews
Should you clean up your DB after integration tests?
Is it good practice to clean up your DB after running integration tests (which tests APIs that put data into that DB)? I want to have a cleanup method after my integration tests run which will access ...
6votes
1answer
133views
Best strategy for creating/updating CI build database
I was wondering what the best practice is regarding databases for integration tests on the build server. If there is a best practice. Currently, our build will create a new database from scratch for ...
9votes
6answers
9kviews
Are HSQLDB unit tests an anti pattern?
HSQLDB is great. It (also) has an embedded mode (no dedicated server needed), which allows for quick prototyping of stuff like Proof of Concepts, and it can also be great in production-ready ...